package com.z2.disruptor.common;

/**
 * Created by cdyizuoming on 2018/1/17.
 */
public enum EventProcessType {

    BATCH_EVENT_PROCESSOR("BatchEventProcessor", 1),
    WORK_EVENT_PROCESSOR("WorkProcessor", 2);


    private String desc;
    private Integer code;

    EventProcessType(String desc, Integer code) {
        this.desc = desc;
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
